package Decorator.decoratorInterfaceImpl;

import Decorator.component.Beverage;
import Decorator.decoratorInterface.CondimentDecorator;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 17:15 2017/9/6
 * @Modified by: 1.0
 */
public class Sony extends CondimentDecorator {
    private Beverage beverage;
    @Override
    public String getDescribe()
    {
        return beverage.getDescribe()+",Sony";
    }

    @Override
    public double cost()
    {
        return 0.5+beverage.cost();
    }

    public Sony(Beverage beverage)
    {
        this.beverage = beverage;
    }
}
